<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%String path=request.getContextPath(); %>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发布新话题 - 美食天下</title>
<meta name="renderer" content="webkit">
<meta name="keywords" content="">
<meta name="description" content="" />
<link rel="shortcut icon" href="https://static.meishichina.com/v6/img/lib/f.ico"/>
<link rel="apple-touch-icon" href="https://static.meishichina.com/v6/img/lib/wapico.png" />
<link rel="stylesheet" type="text/css" href="https://static.meishichina.com/v6/css/lib/all.css?v1=13">
<link rel="stylesheet" type="text/css" href="https://static.meishichina.com/v6/css/app/center/all.css?v1=2017-08-17">
<link rel="stylesheet" type="text/css" href="https://static.meishichina.com/v6/css/app/center/center_pai.css?v1=2017-10-12">
<style>
.mr_edit_fixed .eventids p{font-size: 16px}
.mr_edit li.checkbox span{font-size: 14px}
</style>
</head>
<body>
<!-- --head -->
<jsp:include page="/front/head.jsp"></jsp:include>
 <!-- 右侧 -->
<div class="mod_right">
<div id="mod_location">
<div class="mod_location clear">
<div class="left">
<a href="https://member.meishichina.com/center/my_pai_list/" title="回到我的话题" class="return"> </a>
发布新话题
</div>
</div>
</div>

<!-- -----------------话题表单------------------ -->
<script type="text/javascript">
	$(function(){
		$(".topicForm").submit(function(){

			var f1 = checkTopicImage();

			var f2 = checkTopicName();

			var f3 = checkTopicContext();
			
			return f1&&f2&&f3;
		});
	
		$(".inputM").blur(checkTopicName);
		$("#message").blur(checkTopicContext);
		$(".J_img").focus(focusTopicImage);
		$(".inputM").focus(focusTopicName);
		$("#message").focus(focusTopicContext);
		function focusTopicImage(){
			$(".iamgeMes").html("");
		}
		function focusTopicName(){
			$(".nameMes").html("");
		}
		function focusTopicContext(){
			$(".contextMes").html("");
		}
		function checkTopicImage(){
			if($(".J_img").val()=="")
			{
				$(".iamgeMes").html("必填");
				$(".iamgeMes").css("color","red");
				return false;
			}else return true;
		}
		function checkTopicName(){
			if($(".inputM").val()=="")
			{
				$(".nameMes").html("必填");
				$(".nameMes").css("color","red");
				return false;
			}else return true;
		}
		function checkTopicContext(){
			if($("#message").val()=="")
			{
				$(".contextMes").html("必填");				
				$(".contextMes").css("color","red");
				return false;
			}else return true;
		}
		
	});
</script>
<form class="topicForm" action="<%=path %>/TopicServlet?action=addTopic" id="J_form" enctype="multipart/form-data" method="post">
<div class="mr_edit mr_edit_center clear">
<ul>

<li>
<label class="must">上传图片</label><span class="iamgeMes"></span><br>
<div class="J_upload">上传图片
<input  name="topicImage" class="J_img" id="J_m_cover"  type="file" >
</div>
<span class="img_status" id="multi_cover_status"> </span>
<div id="cover" class="clear">
</div>
</li>

<li>
<label>加个标题（必填）</label><span class="nameMes"></span><br>
<input id="com_title" name="topicName" class="inputM" type="text">
</li>
<li>
<label class="must">写话题</label><span class="contextMes"></span><br>
<textarea id="message"  name="context" style="height:300px;"></textarea>
</li>
</ul>
</div>

<div class="mr_edit mr_edit_fixed clear">
<ul>
<li>

<input type="hidden" id="things_type1" name="classify" value="1">

</li>

<input type="hidden" value="499" name="asid" >
<li> <br>
</li>
 

</ul>
<input class="btn1" name="submit" type="submit" value="发布话题">
</div>

</form>

<form  id="form" >
	<input type="hidden" name="policy" value="eyJleHBpcmF0aW9uIjoiMjAyMC0wOC0yNlQxNDoxNzo1NVoiLCJjb25kaXRpb25zIjpbWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsMCwxMDQ4NTc2MDAwXSxbInN0YXJ0cy13aXRoIiwiJGtleSIsImF0dGFjaG1lbnRcL3BhaVwvMjAyMFwvMDhcLzI2Il1dfQ==">
	<input type="hidden" name="signature" value="wl57aoHCx7uI3HaSCVBu5UemmDE=">
	<input type="hidden" name="OSSAccessKeyId" value="LTAI4Fj7LJHa8oMJLWZbYX2h">
	<input type="hidden" name="callback" value="eyJjYWxsYmFja1VybCI6Imh0dHBzOlwvXC9tZW1iZXIubWVpc2hpY2hpbmEuY29tXC9hamF4XC9hamF4LnBocD9hYz1hbGl5dW5vc3Mmb3A9Y2FsbGJhY2tvc3MiLCJjYWxsYmFja0JvZHkiOiJ1cmw9JHtvYmplY3R9JnNpemU9JHtzaXplfSZtaW1lVHlwZT0ke21pbWVUeXBlfSZoZWlnaHQ9JHtpbWFnZUluZm8uaGVpZ2h0fSZ3aWR0aD0ke2ltYWdlSW5mby53aWR0aH0iLCJjYWxsYmFja0JvZHlUeXBlIjoiYXBwbGljYXRpb25cL3gtd3d3LWZvcm0tdXJsZW5jb2RlZCJ9">
</form>
<input type="hidden" id="oss_key" value="attachment/pai/2020/08/26/20200826">
<input type="hidden" id="user_id" value="12565401">


		</div><!-- 右侧结束 -->
</div>

</body>
</html>

    